package org.ghost.http.testkit.common.exception;

public class CoreException extends RuntimeException {
    private String code;
    private Object data;

    public CoreException(String code) {
        this.code = code;
    }

    public CoreException(String code, String message) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getData() {
        return this.data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
